[Unit]
Description=storm

[Service]
User=aiui
Group=aiui
Environment=PATH=/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
ExecStart={{ middleware_path }}/storm-{{ item.port }}/bin/storm %i
Restart=always
RestartSec=10
LimitNOFILE=10240

[Install]
WantedBy=multi-user.target